import BaseEnum from '@/core/utils/BaseEnum'
import BaseEnumValue from '@/core/utils/BaseEnumValue'

class Oauth2RegisteredClientRestGrantTypeRestGrantTypeEnum extends BaseEnum<string> {
	DEFAULT = new BaseEnumValue<string>('default', '默认')
	USERNAME = new BaseEnumValue<string>('username', '账户名与密码')
	WX_MINI_APP_LOGIN_CODE = new BaseEnumValue<string>('wx_mini_app_login_code', '微信小程序登录code')
	WX_MINI_APP_PHONE_CODE = new BaseEnumValue<string>('wx_mini_app_phone_code', '微信小程序手机号登录')
	CLIENT_CREDENTIALS = new BaseEnumValue<string>('client_credentials', '客户端认证')
	constructor() {
		super(['DEFAULT', 'USERNAME', 'WX_MINI_APP_LOGIN_CODE', 'WX_MINI_APP_PHONE_CODE', 'CLIENT_CREDENTIALS'])
	}
}

const enumModel = new Oauth2RegisteredClientRestGrantTypeRestGrantTypeEnum()

export default enumModel
